<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>互换变量值</title>
    <script>
        var a, b, c;
        a = 130;
        b = 24;
        console.log('a现在是' + a);
        console.log('b现在是' + b);
        c = a;
        a = b;
        b = c;
        console.log('a现在是' + a);
        console.log('b现在是' + b);
    </script>


</head>

<body>

</body>

</html>